var PAGESIZE = 20;
function initData(callback){
	var list = new Array();
	for(var i =1;i<19;i++){
		list.push({name:'菜单'+i,url:'base1/index.html'});
	}
	return list;
}

function loadDataList(type,page,callback){
	var url ='http://news.sohu.com/20120803/n349725127.shtml';
	$.ajax({
		url:url,
		dataType:"html",
		success:function(list){  
			var list = new Array();
			for(var i =1;i<=PAGESIZE;i++){
				list.push({name:type.name+'：：：内容：：：'+(page*PAGESIZE - PAGESIZE)+i});
			}
			
			var obj = {
				count:58,					//总记录数
				page:page,					//当前页数
				dataList:list,				//数据
			}
			obj.totalPage = parseInt((obj.count -1 )/PAGESIZE) + 1;
			callback(obj);
			
		},error:function(){
			callback(false);
		}
	});
}

function loadDataList2(type,page,callback){
	
			var list = new Array();
			for(var i =1;i<=PAGESIZE;i++){
				list.push({name:type.name+'：：：内容：：：'+(page*PAGESIZE - PAGESIZE)+i});
			}
			
			var obj = {
				count:58,					//总记录数
				page:page,					//当前页数
				dataList:list,				//数据
			}
			obj.totalPage = parseInt((obj.count -1 )/PAGESIZE) + 1;
			callback(obj);
			
		
}